//
//  ZTMessage.h
//  YSSmartHome
//
//  Created by yanghao on 26/05/2017.
//  Copyright © 2017 yahaong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JSQMessage.h"
#import "XAISDK/XAITLV.h"
#import "XAISDK/XAIMQTTDEF.h"
typedef enum {
    ZTMessageTypeMe = 0,
    ZTMessageTypeOther = 1
} ZTMessageType;
@interface ZTMessage : JSQMessage
@property (nonatomic, strong) XAITLV* tlv;
@property (nonatomic, assign) XAITYPEAPSN fromApsn;
@property (nonatomic, assign) XAITYPELUID fromLuid;
@property (nonatomic, assign) XAITYPEAPSN toApsn;
@property (nonatomic, assign) XAITYPELUID toLuid;
@property (nonatomic, assign) ZTMessageType type;
@property (nonatomic, assign) UInt32 isRead;
@property (nonatomic, assign) XAITYPETIME time;

@end
